package com.how2java.tmall.service;

import java.util.List;

import com.how2java.tmall.pojo.Order;
import com.how2java.tmall.pojo.Orderitem;

public interface OrderService {
	/**
	 * 待支付
	 */
	String waitPay = "waitPay";
	/**
	 * 待发货
	 */
    String waitDelivery = "waitDelivery";
    /**
     * 待确认收货
     */
    String waitConfirm = "waitConfirm";
    /**
     * 待评价
     */
    String waitReview = "waitReview";
    /**
     * 订单完成
     */
    String finish = "finish";
    /**
     * 订单删除
     */
    String delete = "delete";
    

    void add(Order c);
 
    void delete(int id);
    void update(Order c);
    Order get(int id);
    List<Order> list();
    
    float add(Order c,List<Orderitem> ois);
    
    /**
     * 根据uid获取没有删除的order集合
     * @param uid
     * @return
     */
    List<Order> listByUidAndNotDelete(int uid);
    
}
